package com.yidu.hbatsams.service.TrainingPlan;

import com.yidu.hbatsams.dao.AtsPlanItemMapper;
import com.yidu.hbatsams.domain.AtsPlanItem;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: hbats
 * @description 训练计划指标表
 * @author: 朱星润
 * @create: 2019-11-05 08:52
 **/
@Service
public class AtsPlanItemServiceImpl implements AtsPlanItemService {

    @Resource
    AtsPlanItemMapper atsPlanItemMapper;//指标


    /**
     * Pid查询
     * @param atsPlanItem
     * @return
     */
    @Override
    public List<AtsPlanItem> selectPid(AtsPlanItem atsPlanItem) {
        return atsPlanItemMapper.selectPid(atsPlanItem);
    }


    /**
     * 增加
     * @param record
     */
    @Override
    public void insertSelective(AtsPlanItem record) {
        atsPlanItemMapper.insertSelective(record);
    }

    /**
     * 修改
     * @param record
     * @return
     */
    @Override
    public int updateByPrimaryKeySelectiveone(AtsPlanItem record) {
        return atsPlanItemMapper.updateByPrimaryKeySelectiveone(record);
    }

    /**
     * 查planDate为1指标名称
     * @return
     */
    @Override
    public List<AtsPlanItem> findDivone() {
        return atsPlanItemMapper.findDivone();
    }
    /**
     * 查planDate为2指标名称
     * @return
     */
    @Override
    public List<AtsPlanItem> findDivtwo() {
        return atsPlanItemMapper.findDivtwo();
    }
    /**
     * 查planDate为3指标名称
     * @return
     */
    @Override
    public List<AtsPlanItem> findDivthree() {
        return atsPlanItemMapper.findDivthree();
    }
    /**
     * 查planDate为4指标名称
     * @return
     */
    @Override
    public List<AtsPlanItem> findDivfour() {
        return atsPlanItemMapper.findDivfour();
    }

    @Override
    public List<AtsPlanItem> findDivfive() {
        return atsPlanItemMapper.findDivfive();
    }

    /**
     * 修改
     * @param record
     * @return
     */
    @Override
    public int updatecurriculumItem(AtsPlanItem record) {
        return atsPlanItemMapper.updatecurriculumItem(record);
    }


    /**
     * id查询
     * @param atsPlanItem
     * @return
     */
    @Override
    public List<AtsPlanItem> findItem(AtsPlanItem atsPlanItem) {
        return atsPlanItemMapper.findItem(atsPlanItem);
    }
}
